/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



package com.wp1.servlets.thread;

//~--- non-JDK imports --------------------------------------------------------

import com.wp1.servlets.*;
import fmon.util.Crawler;
import java.io.File;

/**
 *
 * @author jio
 */
public class SpawnCrawler extends Thread  {
    

    public void run() {
   
        Crawler c = new Crawler();
        CrawlObserver co = new CrawlObserver();
        co.setApi(Wp1ApiFactory.getInstance());
        c.addObserver(co);
        c.crawl(new File("/home/jio"));
    }
}

   


//~ Formatted by Jindent --- http://www.jindent.com
